package com.ss.android.account.v2.view;

import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;

final class b implements View.OnTouchListener {
    private final AccountLoginActivity c;
    private int a;
    private float b;

    b(AccountLoginActivity arg2) {
        this.c = arg2;
        this.a = ViewConfiguration.get(this.c).getScaledTouchSlop();
    }

    public final boolean onTouch(View arg4, MotionEvent arg5) {
        switch (arg5.getActionMasked()) {
            case 0: {
                this.b = arg5.getY();
                arg4.getParent().requestDisallowInterceptTouchEvent(true);
                break;
            }
            case 2: {
                if (arg5.getY() - this.b <= (((float) this.a))) {
                    return false;
                }

                arg4.getParent().requestDisallowInterceptTouchEvent(false);
                break;
            }
        }

        return false;
    }
}

